<?php /* Smarty version 2.6.16, created on 2013-08-23 15:03:18
         compiled from ../templates/admin/testimonials/testimonial_add.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/admin/testimonials/testimonial_add.tpl', 49, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/testimonial.js" type="text/javascript"></script>';  echo '
<script language="JavaScript">
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
</script>
';  echo ''; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

 <div class="contain">
 
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      
      <div class="right_contain">
        
         <div class="heading_box">Add Testimonial </div>
         <div class="whitebox">
         <!--Message Div Start-->
          <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
        
          	<?php echo $this->_tpl_vars['msg']; ?>

         
         </div>
         <?php endif; ?>
         <!--Message Div End-->
         
         <form name="frmedittest" id="frmedittest" action="" method="post">
         <input type="hidden" id="page" name="page" value="<?php echo $this->_tpl_vars['page']; ?>
" />
         <div>
          <!--Form Contain start-->
           
           <div class="form_fieldbox">
                        
             <dl>
              <dt>Username: <span class="error">*</span></dt>
             	 <dd>
                 	<select class="input" name="username" id="username" tabindex="1" >
                    <option value="" selected="selected"> Select User Name </option>
                    <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['userArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['show'] = true;
$this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
$this->_sections['j']['start'] = $this->_sections['j']['step'] > 0 ? 0 : $this->_sections['j']['loop']-1;
if ($this->_sections['j']['show']) {
    $this->_sections['j']['total'] = $this->_sections['j']['loop'];
    if ($this->_sections['j']['total'] == 0)
        $this->_sections['j']['show'] = false;
} else
    $this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):

            for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
                 $this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
                 $this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first']      = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last']       = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
?>
                    	<option value="<?php echo $this->_tpl_vars['userArray'][$this->_sections['j']['index']]['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['userArray'][$this->_sections['j']['index']]['first_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['userArray'][$this->_sections['j']['index']]['last_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</option>
                    <?php endfor; endif; ?>
                    </select>
                </dd>
              <div class="clear"></div>
             </dl>
<!--             <dl>
              <dt>Testimonial Title: <span class="error">*</span></dt>
             		<dd>
                 <input type="text" class="input" name="title" id="title" value=""/>
                 </dd>
              <div class="clear"></div>
             </dl>
-->
             
             <dl>
              <dt>Testimonial Content : <span class="error">*</span></dt>
              <dd><textarea tabindex="2" name="description" class="input"  id="description" cols="45" rows="8" onKeyDown="limitText(this.form.description,this.form.countdown,500);" 
onKeyUp="limitText(this.form.description,this.form.countdown,500);"></textarea>
                    <br /><font size="1">(Maximum characters: 500)<br>
You have <input readonly type="text" name="countdown" size="3" <?php if ($this->_tpl_vars['total'] == '0' || $this->_tpl_vars['total']): ?> value="<?php echo $this->_tpl_vars['total']; ?>
" <?php else: ?> value="500" <?php endif; ?>> characters left.</font>
</dd>
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="addtestimonial_btn" id="addtestimonial_btn" tabindex="3" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=testimonials';" tabindex="4"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>